package com.sicnu.carrent.serivce.impl;

import com.sicnu.carrent.domain.Type;
import com.sicnu.carrent.repository.TypeRepository;
import com.sicnu.carrent.serivce.TypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TypeServiceImpl implements TypeService {

    @Autowired
    private TypeRepository typeRepository;

    @Override
    public List<Type> findAllTypes() {
        return typeRepository.findAll();
    }
}
